package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 广告用户分享表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-09-11
 */
@TableName("wz_adv_share")
public class WzAdvShare extends Model<WzAdvShare> {

    private static final long serialVersionUID = 1L;

    /**
     * adv_share_id
     */
    @TableId(value = "adv_share_id", type = IdType.AUTO)
    private Long advShareId;
    /**
     * 广告id
     */
    @TableField("adv_id")
    private Long advId;
    @TableField("adv_user_id")
    private Long advUserId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 分享赏金
     */
    @TableField("partition_reward")
    private Integer partitionReward;
    /**
     * 分享数量
     */
    @TableField("share_number")
    private Integer shareNumber;
    /**
     * 分享赏金
     */
    @TableField("share_reward")
    private Integer shareReward;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 封面图
     */
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 状态
     */
    private Integer status;
    @TableField("end_time")
    private Date endTime;
    /**
     * 子类型
     */
    private Integer subtype;
    /**
     * 点击量
     */
    @TableField("click_number")
    private Integer clickNumber;
    /**
     * 手机型号：1-ios；2-android；
     */
    @TableField("mobile_type")
    private Integer mobileType;
    /**
     * 是否推送:0-否;1-是;
     */
    @TableField("is_push")
    private Integer isPush;

    @Version
    private Integer version;


    public Long getAdvShareId() {
        return advShareId;
    }

    public void setAdvShareId(Long advShareId) {
        this.advShareId = advShareId;
    }

    public Long getAdvId() {
        return advId;
    }

    public void setAdvId(Long advId) {
        this.advId = advId;
    }

    public Long getAdvUserId() {
        return advUserId;
    }

    public void setAdvUserId(Long advUserId) {
        this.advUserId = advUserId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getPartitionReward() {
        return partitionReward;
    }

    public void setPartitionReward(Integer partitionReward) {
        this.partitionReward = partitionReward;
    }

    public Integer getShareNumber() {
        return shareNumber;
    }

    public void setShareNumber(Integer shareNumber) {
        this.shareNumber = shareNumber;
    }

    public Integer getShareReward() {
        return shareReward;
    }

    public void setShareReward(Integer shareReward) {
        this.shareReward = shareReward;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getSubtype() {
        return subtype;
    }

    public void setSubtype(Integer subtype) {
        this.subtype = subtype;
    }

    public Integer getClickNumber() {
        return clickNumber;
    }

    public void setClickNumber(Integer clickNumber) {
        this.clickNumber = clickNumber;
    }

    public Integer getMobileType() {
        return mobileType;
    }

    public void setMobileType(Integer mobileType) {
        this.mobileType = mobileType;
    }

    public Integer getIsPush() {
        return isPush;
    }

    public void setIsPush(Integer isPush) {
        this.isPush = isPush;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.advShareId;
    }

    @Override
    public String toString() {
        return "WzAdvShare{" +
        "advShareId=" + advShareId +
        ", advId=" + advId +
        ", advUserId=" + advUserId +
        ", userCode=" + userCode +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", partitionReward=" + partitionReward +
        ", shareNumber=" + shareNumber +
        ", shareReward=" + shareReward +
        ", createTime=" + createTime +
        ", coverUrl=" + coverUrl +
        ", status=" + status +
        ", endTime=" + endTime +
        ", subtype=" + subtype +
        ", clickNumber=" + clickNumber +
        ", mobileType=" + mobileType +
        ", isPush=" + isPush +
        ", version=" + version +
        "}";
    }
}
